const {ipcMain} = require('electron')
const {MainWindow} = require('../mainWindow/mainWindow')

ipcMain.handle('on-open-dev-tool-event',(e)=>{
    const win = MainWindow.getInstance()   
    if(!win.webContents.isDevToolsOpened()){
        win.webContents.openDevTools();
    }else{
        win.webContents.closeDevTools();
    }
})